//
//  Extensions.swift
//  MyVideo
//
//  Created by han on 2021/4/20.
//

import UIKit

protocol ReuseIdentifierProtocol {
    static var reuseIdentifier: String { get }
}
extension ReuseIdentifierProtocol where Self: UIView {
    static var reuseIdentifier: String { "\(self)ReuseIdentifier" }
}
extension UICollectionReusableView: ReuseIdentifierProtocol {}
extension UITableViewCell: ReuseIdentifierProtocol {}


protocol StoryboardIDProtocol {
    static var storyboardID: String { get }
}
extension StoryboardIDProtocol where Self: UIViewController {
    static var storyboardID: String { "\(self)" }
}
extension UIViewController: StoryboardIDProtocol {}
